package com.hsgene.shoppingcar.domain;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.hsgene.common.util.date.TimeJsonDeserializer;

import java.io.Serializable;
import java.util.Date;

/**
 * @description:
 * @projectName: hdas-geneshop-server
 * @package: com.hsgene.shoppingcar.domain
 * @author: maodi
 * @createDate: 2018/10/16 17:47
 * @version: 1.0
 * Copyright: Copyright (c) 2018
 */
public class GeneticGoods implements Serializable {

    private static final long serialVersionUID = -3925937151849255550L;

    /**
     * 逻辑主键ID
     */
    private String id;

    /**
     * 耗材名称
     */
    private String name;

    /**
     * 耗材当前的库存数量
     */
    private Long amount;

    /**
     * 商品的累计使用量
     */
    private Long totalUsedAmount;

    /**
     * 耗材的预警值
     */
    private Long warningAmount;
    /**
     * 耗材单位
     */
    private String unitId;

    /**
     * 耗材的创建者名字
     */
    private String creatorName;

    /**
     * 耗材的创建时间YYYY-MM-DD HH:mm:ss
     */
    @JsonDeserialize(using = TimeJsonDeserializer.class)
    private Date createDateTime;

    /**
     * 耗材的更新者名字
     */
    private String updater_name;

    /**
     * 耗材的更新时间YYYY-MM-DD HH:mm:ss
     */
    @JsonDeserialize(using = TimeJsonDeserializer.class)
    private Date update_date_time;

    /**
     * 业务数据逻辑删除 0-代表未删除   1-代表删除
     */
    private Integer deleteFlag;

    /**
     * 备注
     */
    private String remarks;

    /**
     * 该耗材是否在基因检测中使用  0-代表未使用  1-代表已经使用
     */
    private Integer isUsed;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getAmount() {
        return amount;
    }

    public void setAmount(Long amount) {
        this.amount = amount;
    }

    public Long getTotalUsedAmount() {
        return totalUsedAmount;
    }

    public void setTotalUsedAmount(Long totalUsedAmount) {
        this.totalUsedAmount = totalUsedAmount;
    }

    public Long getWarningAmount() {
        return warningAmount;
    }

    public void setWarningAmount(Long warningAmount) {
        this.warningAmount = warningAmount;
    }

    public String getUnitId() {
        return unitId;
    }

    public void setUnitId(String unitId) {
        this.unitId = unitId;
    }

    public String getCreatorName() {
        return creatorName;
    }

    public void setCreatorName(String creatorName) {
        this.creatorName = creatorName;
    }

    public Date getCreateDateTime() {
        return createDateTime;
    }

    public void setCreateDateTime(Date createDateTime) {
        this.createDateTime = createDateTime;
    }

    public String getUpdater_name() {
        return updater_name;
    }

    public void setUpdater_name(String updater_name) {
        this.updater_name = updater_name;
    }

    public Date getUpdate_date_time() {
        return update_date_time;
    }

    public void setUpdate_date_time(Date update_date_time) {
        this.update_date_time = update_date_time;
    }

    public Integer getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(Integer deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public Integer getIsUsed() {
        return isUsed;
    }

    public void setIsUsed(Integer isUsed) {
        this.isUsed = isUsed;
    }

    @Override
    public String toString() {
        return "GeneticGoods{" +
               "id='" + id + '\'' +
               ", name='" + name + '\'' +
               ", amount=" + amount +
               ", totalUsedAmount=" + totalUsedAmount +
               ", warningAmount=" + warningAmount +
               ", unitId='" + unitId + '\'' +
               ", creatorName='" + creatorName + '\'' +
               ", createDateTime=" + createDateTime +
               ", updater_name='" + updater_name + '\'' +
               ", update_date_time=" + update_date_time +
               ", deleteFlag=" + deleteFlag +
               ", remarks='" + remarks + '\'' +
               ", isUsed=" + isUsed +
               '}';
    }
}
